package com.eusun.design.state.demo1;

import com.eusun.design.state.demo1.GumballMachine;

public class Demo {
    public static void main(String[] args) {
        GumballMachine machine = new GumballMachine(5);
        machine.insertQuarter();
        machine.turnCrank();
        machine.dispense();

        machine.insertQuarter();
        machine.turnCrank();
        machine.dispense();
    }
}
